]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspaceAnimation: Add to uiGroup insead of window_group
authorAlexander Mikhaylenko <exalm7659@gmail.com>
Thu, 16 Jul 2020 10:31:36 +0000 (15:31 +0500)
committerMarge Bot <marge-bot@gnome.org>
Tue, 2 Feb 2021 19:35:07 +0000 (19:35 +0000)
This will allow to hide window group completely in the following commits.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1326>

js/ui/workspaceAnimation.js

index e48a03061ad6066754d23ec7f19baeb227a336f7..b7c467c3b5af257a9fd198e64ecd435a79ecf8d2 100644 (file)
@@ -145,7 +145,6 @@ var WorkspaceAnimationController = class {
         if (this._switchData)
             return;
 
-        const wgroup = global.window_group;
         const workspaceManager = global.workspace_manager;
         const curWs = workspaceManager.get_workspace_by_index(from);
 
@@ -162,8 +161,8 @@ var WorkspaceAnimationController = class {
         switchData.container = new Clutter.Actor();
         switchData.container.add_child(switchData.curGroup);
 
-        wgroup.add_child(switchData.movingWindowBin);
-        wgroup.add_child(switchData.container);
+        Main.uiGroup.insert_child_above(switchData.container, global.window_group);
+        Main.uiGroup.insert_child_above(switchData.movingWindowBin, switchData.container);
 
         for (const dir of Object.values(Meta.MotionDirection)) {
             let ws = null;
@@ -187,8 +186,6 @@ var WorkspaceAnimationController = class {
             group.set_position(x, y);
         }
 
-        wgroup.set_child_above_sibling(switchData.movingWindowBin, null);
-
         if (this.movingWindow) {
             const windowActor = this.movingWindow.get_compositor_private();